Repository navigation
feat(memory): add version-aware development history core - #456
Closed
Anduin9527 wants to merge 26 commits into
Closed
Anduin9527 wants to merge 26 commits into
Anduin9527 wants to merge 26 commits into
Conversation
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Signed-off-by: anduin9527 <anduin9527@gmail.com>
Restore explicit streamed thinking for Episode compilation and bounded metadata diagnostics. Renew all bridge request deadlines on useful progress while preserving workspace lease durations. Verified with 74 focused Rust tests and cargo clippy --lib -- -D warnings in Docker. Signed-off-by: anduin9527 <anduin9527@gmail.com>
Anduin9527
marked this pull request as ready for review
September 9, 2026 03:00
Signed-off-by: Anduin9527 <anduin9527@gmail.com>
Signed-off-by: Anduin9527 <anduin9527@gmail.com>
Signed-off-by: Anduin9527 <anduin9527@gmail.com>
Contributor
Author
|
Closing this revision so we can rebuild the branch on current main, address the final integration review findings, remove CI-scope changes, and resubmit with a clean commit history. |
genedna
added a commit
that referenced
this pull request
Oct 7, 2026
…artable candidates - plan-20260913 (Media) is 实施中, not 未启动: FL-00/01/07/02/06/03/04/05 all done/complete (v0.30.0..v0.30.5), only plan-level closure gates remain; fix the earlier 未启动/FL-00-pending rows. - Next startable candidates (zero internal prereq + review PASS) are plan-20260916 CAP-01 (must re-verify DEP-CAP-01 monoengine pin) and plan-20260926 DM-00 (DEP-DM-03 #456 clone not at expected path; needs clone or explicit downgrade to gh pr diff). - Note gh auth is available (genedna, repo+workflow scopes). Signed-off-by: Eli Ma <eli@patch.sh>
genedna
added a commit
that referenced
this pull request
Oct 7, 2026
- plan-20260926: DM-00 done/complete. Append '## 取材清单' section with 34-item file-level inventory (src/internal/ai/memory/** at pin bc1be58), freeze #456 remote facts (state=CLOSED, MERGEABLE/UNSTABLE, 149 files, 26 commits, reviews=0) at 2026-10-07 01:03 UTC, record migration 2026090701/02/03 skip (tip 2026092701), and MemoryAnchorConfidence -> MemoryConfidence (deleted context_budget) note. - plan-20260819: add retirement banner (M2-01..M2-16E retired, R30 log kept as history). - plan-status: mark plan-20260819 已取代, plan-20260926 实施中 (DM-00 done), refresh snapshot and zero-dependency/pointer rows; DEP-DM-03 satisfied via /tmp/libra-pr456 clone. Verified: pin rev-parse==bc1be587e4..., inventory rg -c==ls-tree|wc -l==34, rg plan-20260926 refs present, cargo run status shows only DM-00 write set modified. Signed-off-by: Eli Ma <eli@patch.sh>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
memory.recallplus opt-inmemory.episode.recordfor completed DSH turns.Architecture
The implementation follows the design accepted in #454:
Upstream integration
Merged current upstream main through
a4d6ca6b11489e734571cca071dd3dd9aadc5c59in merge commit191094fd61d3cbc46a9ffa5785c4d16b7d2a6cee, preserving the existing PR branch history.memory.keyed_digest.v1configuration surface.2026092501_memory_core2026092502_memory_fts_search2026092503_context_selection_receiptThe migration runner only applies versions above the current tip. The new ordering prevents repositories already on upstream
2026091901from skipping Memory tables. Memory SQL semantics are unchanged.DSH integration
Enable completed-turn capture with
LIBRA_DSH_MEMORY_MODEL=deepseek-chaton the bridge andcaptureMemoryEpisodes: truein the separately maintained DSH plugin. A compiler credential is required. Recall alone remains available without a compiler model.Capture uses the first-turn code HEAD and completion HEAD, targets that turn's compilation job, and retains SHA-1 code-anchor compatibility. The plugin's real DSH
v0.1.2-alpha.1gate previously generated a structured Episode with a real compiler model, verified its stored projection/receipt, remounted the plugin, and recalled the result through a real headless model run.The shelved native Libra DSH runtime is not included. The plugin's Cordis refactor is separate preparation work, not part of this PR.
Verification
Checks run in the
libra-dev-anduindevelopment container onlerisafter resolving the merge:cargo +nightly fmt --all --check: passed.cargo check --all-targets --all-features: passed.cargo clippy --all-targets --all-features -- -D warnings: passed.cargo test --test memory_episode_test --test fts5_capability_test -- --test-threads=1: 4 passed.cargo test --test command_test memory -- --test-threads=1: 4 passed.cargo test --lib memory -- --test-threads=1: 146 passed.2026092503.The first full
cargo test --all -- --test-threads=1run completed 3,510 library tests: 3,504 passed and 6 failed. Two merge-related failures (Memory operation scope and migration registry expectations) were fixed and passed exact reruns. The remaining four failures were reproduced unchanged on a detached pureupstream/mainworktree in the same container: the existing-pack-index assertion, descendant-process cleanup, and two bubblewrap usability checks. The container has a root-owned/usr/bin/bwrap, but Docker does not permit namespace creation. GitHub CI is the authoritative clean-environment result.Review guide
Memory remains repository-local. Remote Memory publication, the separate DSH plugin refactor, and the shelved native DSH runtime are out of scope.
Refs #451
Builds on #454